package com.ok.boot_mongo1.dao;

import com.ok.boot_mongo1.pojo.User;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface UserRepository extends MongoRepository<User, Double> {

    //T, ID extends Serializable

    User findUserByName(String name);

    User findUserByNameAndAndPassword(String name, String password);
}
